package genercis;

public class test {
    public static void main(String[] args) {
        SuperArray<Student> superArray = new SuperArray<>();

        Student student = new Student("wangwu",45);
        superArray.addToHead(student);
        superArray.addToHead(new Student("zhangsan",18));
        superArray.addToHead(new Student("lisi",20));
        for (int i = 0; i < superArray.size(); i++) {
            Student select = superArray.select(i);
            select.play();
        }
    }

}
